package com.acme.service.bank;

import com.acme.domain.bank.Bank;
import com.acme.domain.bank.Client;
import com.acme.domain.bank.Gender;
import com.acme.exceptions.ClientExistsException;

import java.io.IOException;

public interface BankService {
    void saveBank(Bank bank, String pathTo) throws IOException;

    Bank loadBank(String pathFrom) throws IOException, ClassNotFoundException;

    Client addClient(Bank bank, String name, Gender gender)
            throws ClientExistsException;

}